<template>
  <div>
    <van-tabbar v-model="active">
      <van-tabbar-item replace to="/homeList" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/order" icon="orders-o">订单</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { Tabbar, TabbarItem } from 'vant';
  export default {
    components: {
      [Tabbar.name]: Tabbar,
      [TabbarItem.name]: TabbarItem,
    },
    props: ['act'],
    data() {
      return {
        active: 0
      }
    },
    mounted() {
      this.active = this.act
    }
  }
</script>
